


<ion-content no-padding class="my-information">
<ion-grid  class="info" no-padding *ngIf="user">
  <ion-row class="pic">
    <ion-col col-4 text-left>头像</ion-col>
    <ion-col text-right>
      <img src="{{user.portrait}}" alt="">
    </ion-col>
  </ion-row>
  <ion-row  class="border-b">
    <ion-col col-4 text-left>姓名</ion-col>
    <ion-col text-right class="disabled">{{user.name}}</ion-col>
  </ion-row>
  <ion-row>
    <ion-col col-4 text-left>性别</ion-col>
    <ion-col text-right class="disabled">{{user.sex == 2? '女':'男'}}</ion-col>
  </ion-row>
  <ion-row  class="tel border-b">
    <ion-col col-4 text-left class="tel">手机</ion-col>
    <ion-col text-right class="disabled">
      {{phone}} <span (click)=" gotoModificationPhone()">修改</span>
    </ion-col>
  </ion-row>
  <ion-row class="border-b" *ngIf="user.birthday!=null">
    <ion-col col-4 text-left>生日</ion-col>
    <ion-col text-right class="disabled">{{user.birthday}}</ion-col>
  </ion-row>
  <ion-row class="border-b">
    <ion-col col-4 text-left>身份证号</ion-col>
    <ion-col text-right class="disabled">{{idCard}}</ion-col>
  </ion-row>
</ion-grid>
<ion-grid class="card-box">
  <ion-row>
    <ion-col text-center>
      身份证照片
    </ion-col>
  </ion-row>
  <ion-row class="id-card-img">
    <ion-col col-6 text-center (click)="uploadIdcard('idcardFront')">
      <img [src]="user.idcardFront" alt="">
      <div class="file-inner" *ngIf="!user.idcardFront">
        <p no-margin>
          <ion-icon name="add-pic"></ion-icon>
        </p>
        <p>点击上传</p>
      </div>
    </ion-col>
    <ion-col col-6 text-center (click)="uploadIdcard('idcardBack')">
      <img [src]="user.idcardBack" alt="">
      <div class="file-inner" *ngIf="!user.idcardBack">
        <p no-margin>
          <ion-icon name="add-pic"></ion-icon>
        </p>
        <p>点击上传</p>
      </div>
    </ion-col>
  </ion-row>
  <ion-row class="id-card">
    <ion-col col-6 text-center class="disabled">身份证正面照片</ion-col>
    <ion-col col-6 text-center class="disabled">身份证反面照片</ion-col>
  </ion-row>
</ion-grid>
</ion-content>
